package aad.storyboard.model;

import aad.storyboard.controller.DragDropManager;
import aad.storyboard.view.GraphicView;

import android.util.Log;
import android.view.MotionEvent;

public class DragDropAnimation extends Animation{
	
	private int endTime;	
	private MotionEvent event;
	private GraphicView view;
	
	public DragDropAnimation (int starttime, int endtime) {
		super(starttime);
		this.setEndTime(endtime);
		
	}

	@Override
	public void animate() {
		if(this.active){				
			view.setDragging(true);
			System.out.println("Animation is active");
		}
	}

	
	
	public void setEvent(MotionEvent ev)
	{
		event=ev;
	}
	
	@Override
	public void undo() {
		// TODO Auto-generated method stub
		
	}	
	
	public void setEndTime(int endTime) {
		this.endTime = endTime;
	}

	public int getEndTime() {
		return endTime;
	}
	
	
	@Override
	public void adjustParameters() {
		// TODO Auto-generated method stub
		
	}
}
